<%--
  Created by IntelliJ IDEA.
  User: cola
  Date: 2021/4/25
  Time: 20:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
<body>
<%--${sessionScope.strvalue}
${sessionScope.intvalue}--%>
<form action="${pageContext.request.contextPath}/user/${id}" method="post">
    <label for="">用户名:<input type="text" name="username" value="${user.username}"></label>
    <label for="">密码:<input type="password" name="password" value="${user.password}"></label>
    <label for="">年龄:<input type="text" name="age" value="${user.age}"></label>
    <label for="">邮箱:<input type="text" name="email" value="${user.email}"></label>
    <label for="">省份:<input type="text" name="address.province" value="${user.address.province}"></label>
    <label for="">城市:<input type="text" name="address.city" value="${user.address.city}"></label>
    <input type="text" name="_method" value="PUT" readonly hidden>
    <button>保存</button>
</form>
</body>
</html>
